// ..\MCHdTree\CInPlcEdit.cpp : implementation file
//

#include "stdafx.h"
//#include "UndstandDia.h"
#include "..\MCHdTree\CInPlcEdit.h"
#include ".\cinplcedit.h"


// InPlcEdit

IMPLEMENT_DYNAMIC(CInPlcEdit, CEdit)
CInPlcEdit::CInPlcEdit()
				: m_fCanceled(FALSE)
{
}

CInPlcEdit::~CInPlcEdit()
{
}


BEGIN_MESSAGE_MAP(CInPlcEdit, CEdit)
ON_WM_KEYUP()
END_MESSAGE_MAP()



// InPlcEdit message handlers
void CInPlcEdit::OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
{
	// TODO: Add your message handler code here and/or call default
	switch( nChar )
	{
	case VK_RETURN:
		::SetFocus(::GetParent(m_hWnd));
		break;

	case VK_ESCAPE:
		m_fCanceled=TRUE;
		::SetFocus(::GetParent(m_hWnd));
		break;

	default:
		CEdit::OnKeyUp(nChar, nRepCnt, nFlags);
		break;
	}

}

